package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统字段
 * </p>
 *
 * @author baiqiang
 * @since 2020-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_sys_field")
@ApiModel(value="CrmSysField对象", description="系统字段")
public class CrmSysField extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "继承的自定义字段ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty(value = "字段编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "默认名称")
    @TableField("sys_name")
    private String sysName;

    @ApiModelProperty(value = "字段名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "公司ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "公司名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "字段来源")
    @TableField("source")
    private String source;

    @ApiModelProperty(value = "字段分类")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "字段值")
    @TableField("val")
    private String val;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "长度")
    @TableField("length")
    private String length;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "状态(0:删除 1:正常)")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "是否作为条件查询  0:否 1:是")
    @TableField("is_search")
    private Boolean isSearch;

    @ApiModelProperty(value = "启用（0：否，1：是）")
    @TableField("on_off")
    private Boolean onOff;

    @ApiModelProperty(value = "是否导出（0：否，1：是）")
    @TableField("on_export")
    private Boolean onExport;

    @ApiModelProperty(value = "是否必填（0：否，1：是）")
    @TableField("on_fill")
    private Boolean onFill;

    @ApiModelProperty(value = "是否是系统字段（0：否，1：是）")
    @TableField("on_sys")
    private Boolean onSys;

    @ApiModelProperty(value = "是否系统必填字段（租户不可以修改）")
    @TableField("on_sys_fill")
    private Boolean onSysFill;


}
